
public class StartTriageEvent extends EventBase {

	public int duration;
	
	public StartTriageEvent(PatientBase patient) {
		super(patient);
		this.duration = 0;
	}
	
	public int getDuration() {
		if (eventPatient.isEms() == true) {
			this.duration = 0;}
		else {
			this.duration = 10;}   ///PLACE DISTRIBUTION HERE
		
		return duration;}
	
	
	public void execute() {
		super.execute(); 
		EndTriageEvent event =  new EndTriageEvent(eventPatient);
		event.scheduledTime = Simulator.getCurrentTime() + this.getDuration();
		eventPatient.timeArray[1]=Simulator.getCurrentTime();
		Simulator.addEvent(event);
	}

	public int getExpectedDuration() {
		return duration;
	}

}
